﻿using System;

namespace DBUtil.Attributes
{
    #region Ignore
    [AttributeUsage(AttributeTargets.Property)]
    public class IgnoreUpdateAttribute : Attribute { }
    [AttributeUsage(AttributeTargets.Property)]
    public class IgnoreSelectAttribute : Attribute { }
    [AttributeUsage(AttributeTargets.Property)]
    public class IgnoreInsertAttribute : Attribute { }
    /// <summary>
    /// 相当于 [IgnoreUpdate] + [IgnoreInsert]
    /// </summary>
    [AttributeUsage(AttributeTargets.Property)]
    public class IgnoreWriteAttribute : Attribute { }
    #endregion

    #region PrimaryKey
    [AttributeUsage(AttributeTargets.Property)]
    public class PrimaryKeyAttribute : Attribute { }

    [AttributeUsage(AttributeTargets.Property)]
    public class IdentityAttribute : Attribute { }
    #endregion

    #region JsonMap
    [AttributeUsage(AttributeTargets.Property)]
    public class JsonMapAttribute : Attribute { }
    #endregion

    #region Tree
    [AttributeUsage(AttributeTargets.Property)]
    public class ParentIdAttribute : Attribute { }
    [AttributeUsage(AttributeTargets.Property)]
    public class ChildrenAttribute : Attribute { }
    #endregion
}